Crystal-field effects in spinel: oxidation states of iron and chromium