Structure and variability of the Martian magnetic pileup boundary and bow shock from MGS MAG/ER observations