Improvement or selection? A longitudinal analysis of students' views about experimental physics in their lab courses