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