A new methodobgy for investigating the cost-optimality of energy retrofitting a building category