A hysteresis model considering microstructural feature distribution