Thermal properties ofCd2Re2O7andCd2Nb2O7at the structural phase transitions