Self-harm and suicide attempts preceding and following electroconvulsive therapy: a population-based study