Iterative Learning Control for Electrical Stimulation and Stroke Rehabilitation