Retinopathy in type 2 diabetes: competing risk analysis with joint model of longitudinal data and accelerated failure time models