Tuning the CrIV/CrIII Valence States in Purple Cr-Doped SnO2 Nanopowders: The Key Role of CrIV Centers and Defects.