What are the results from electronic health records data regarding substance use and mental diagnoses among adults with and without type 2 diabetes?