Oxidation state and localization of chromium ions in Cr-doped cassiterite and Cr-doped malayaite