How to measure pulmonary vascular and right ventricular function