A piezoresistive flexible sensor to detect soft actuator deformation