Diffraction and gluon saturation at the LHC and the EIC