Encapsulated polypyrrole actuators