Hybrid continuum-molecular modelling of multiscale internal gas flows