Effect of temperature on foamability using a thermoresponsive polymer