Medical apprenticeships ensure undergraduates are legitimate participants in communities of practice