Effect of electroconvulsive seizures on cognitive flexibility