Generalized Prandtl-Ishlinskii hysteresis model and its analytical inverse for compensation of hysteresis in smart actuators