Residents' surgical performance during the laboratory years: an analysis of rule-based errors.