Cost-efficient nearly zero-energy buildings (NZEBs)