Treating respiratory failure in children