Circuit model for static hysteresis in magnetic cores