how does the rotary kiln work