Longitudinal vector potentials for molecular magnetic properties