The male routes to a teaching career: motivations, market constraints and gender inequalities