Deciding where to belong: gender differences in educational trajectories and migration in a rural Spanish town