Transient dynamic analysis of a pump-turbine with hysteresis effect