A review of the use of phase change materials for energy storage in buildings