what happen when the solid,liquid or gases absorb or release heat?