The heliopause as a pressure equilibrium surface separating two counterflowing magnetized plasmas