Pedagogical approaches, contextual variables, and the development of student self-efficacy in undergraduate physics courses