Nomogram model predicts the risk of visual impairment in diabetic retinopathy: a retrospective study