Programmable Stimulation and Actuation in Flexible and Stretchable Electronics