Zero-field splittings of Gd3+ and Cm3+ in CeO2 and ThO2