Combined heating and refrigeration systems