how long should pneumonia be treated in children