When to consider electroconvulsive therapy (ECT)