Headache and psychological disorders in children and adolescents: a cross-generational study