the working principle of a rotary furnace