Girls get better grades than boys, even in STEM subjects, study finds