Characteristics of Fe- and Mg-doped CuCrO2 nanocrystals prepared by hydrothermal synthesis