Data-driven Risk Characterization and Prediction of Renal Failure among Diabetic Type 2 Patients using Electronic Medical Records