Impact of resident involvement on patient outcomes in laparoscopic cholecystectomy of different degrees of complexity: analysis of 2331 cases