Flow coupling mechanisms in two-layer Rayleigh–Benard convection