Relationships between ventilatory impairment, sleep hypoventilation and type 2 respiratory failure