Alternative lagrangians for a charged particle in a magnetic field