Modeling and simulation of the deformation of multi-state hydrogels subjected to electrical stimuli