Association of renal function with diabetic retinopathy and macular edema among patients with type 2 diabetes mellitus