Applying supervised contrastive learning for the detection of diabetic retinopathy and its severity levels from fundus images