On the origins of gender gaps in human capital: Short- and long-term consequences of teachers' biases