Glycated haemoglobin, plasma glucose and diabetic retinopathy: cross-sectional and prospective analyses