Timing of referral impacts surgical outcomes in patients undergoing repair of bile duct injuries