Two‐dimensional simulations of magnetic pulsations upstream of the Earth's bow shock