A review of the applications of phase change materials in cooling, heating and power generation in different temperature ranges