What is the primary purpose of a high-frequency oscillatory ventilator (HFOV) in neonatal and pediatric care?