Inverse hysteresis modeling and nonlinear compensation of ionic polymer metal composite sensors