The structure of the magnetopause