Modelling of the residual atmosphere in vacuum devices with internal adhesive joints