What change of state occurred to a substance in a beaker, when thermal energy was added?