Determinants of access to academic careers in France