The impact of the pre-instructional cognitive profile on learning gain and final exam of physics courses: a case study.