Medical students’ motivation and academic performance: the mediating roles of self-efficacy and learning engagement