Gravity and convection in a two-layer mantle