Therapy for lung failure using nitric oxide inhalation and surfactant replacement