Locating and understanding the largest gender differences in pathways to science degrees