Hysteresis modeling for instrument transformers