Complication rate and risk factors for intraoperative complications in resident-performed phacoemulsification surgery