High-energy ball milling of nonstoichiometric compounds