How can matter be changed from a liquid to a solid?