Iterative learning control strategy for functional neuromuscular stimulation