Dynamics of career intentions in a medical student cohort: a four-year longitudinal study