Suicidal ideation across depressive episodes: 9-year longitudinal cohort study