Testing the developmental theory of sex differences in intelligence on 12–18 year olds