Automated AI interpretation of echocardiograms for systolic and diastolic function: a multicohort study