Repetitive Transcranial Magnetic Stimulation ( rTMS ) is an effective treatment for Major Depressive Disorder ( MDD ) , and is based upon delivery of focal high-energy pulses of electromagnetic stimulation .