Gender differences in science education: The double‐edged role of prior knowledge in physics