Academic performance and its association with class attendance, intrinsic motivation and gender in engineering students