A resonance-based method for spacecraft formation flying control using the Lorentz force