Thermocapillary effects in two-phase medium and applications to metal-silicate separation