Study: AI uses EHRs to predict suicide attempts 2 years in advance