Free-cooling of buildings with phase change materials