Predicting hospital admissions for ambulatory care sensitive conditions using primary care EMR data