Intraocular surgery in a large diabetes patient population: risk factors and surgical results