Mental illness and intensification of diabetes medications: an observational cohort study