The dual influence of the envelope on the thermal performance of conditioned and unconditioned buildings