Mathematical Modelling of Magnetic Hysteresis in Exchange-Bias Spin Valves