High temperature heat capacities and electrical conductivities of UO2 doped with Nd and Mg