A comparative study of characteristics and outcome of patients with acute respiratory failure and acute on chronic respiratory failure requiring mechanical ventilation