A machine learning approach to understanding comorbidity between mental and physical health conditions