how does a rotary dryer work