The effect of free surface deformation on buoyancy and thermocapillary convection