Transient modelling of a rotary-kiln pyrolyser