Medium-temperature heat pumps