Real-time pressure-volume diagrams for the evaluation of ventricular function