Late-life difficult-to-treat depression and dementia subtypes: a naturalistic cohort study using electronic health records | Synapse