Thermocapillary and thermogravitational convection in a two-layer system with curved interface