Variational Integration Of Hamiltonian Systems By Discontinuous Approximations