Steady thermocapillary flows in a two-layer liquid system with flat interfaces