Risk factors associated with intraoperative complications in primary shoulder arthroplasty