Magnetohydrodynamic theory for the interaction of an interplanetary double-shock ensemble with the Earth's bow shock