Heat effects in a membrane reactor for the water gas shift reaction