Treating ear infections in children