A numerical solution that determines the temperature field inside phase change materials: Application in buildings