Periodic Conductivity as a Mechanism for Cardiac Stimulation and Defibrillation