Modelling latency removal in mechanical pulping processes