Buoyant-thermocapillary instabilities in medium-Prandtl-number fluid layers subject to a horizontal temperature gradient