The influence of students’ cognitive preferences on the selection of science and mathematics subjects