Balancing cost and energy performance in net-zero buildings