Individual and situational factors related to undergraduate mathematics instruction