Nearly zero-energy buildings