Ordering of magnetic impurities and tunable electronic properties of topological insulators.