A 68-year-old man presents with acute severe dyspnoea, frothy sputum and bilateral basal crackles. Blood pressure is 180/100 mmHg and he has reduced oxygen saturation. ECG shows ischaemic changes. What is the most appropriate immediate management for acute pulmonary oedema?