Closed-Loop Control of Epilepsy by Transcranial Electrical Stimulation