A model for dynamic and steady-state simulation of autogenous and semi-autogenous mills