First integrals for a charged particle moving on a plane under the action of a magnetic field orthogonal to this plane