On the Hamiltonian for a Particle in an Electromagnetic Field