Structure and Dynamics of the Magnetopause and Its Boundary Layers