Shape changing hydrogels and their applications as soft actuators