Analytical investigation of the steady-state behaviour of dynamic and diffusive building envelopes