Influence of episode duration of major depressive disorder on response to electroconvulsive therapy