An optimized deep learning based technique for grading and extraction of diabetic retinopathy severities