Exploring medical student well-being during transition: a realist inquiry