Risk factors related to the severity of diabetic retinopathy