Measuring student engagement in science classrooms : an investigation of the contextual factors and longitudinal outcomes