The electrodynamics and magnetohydrodynamics of geospace