Perceived mathematical ability under challenge: a longitudinal perspective on sex segregation among STEM degree fields