Rotary kilns for thermal processing of minerals