Alternating current electrocution detection and termination by an implantable cardioverter defibrillator