High-temperature heat capacity of Sm2CuO4 and Ho2Cu2O5