Quantifying the need for cardiac support in human shock by a functional model of cardiopulmonary vascular dynamics: with special reference to myocardial infarction