Magnetic flux compression, flux expansion duality as an analytical tool for electromagnetic accelera