Thermocapillary Convection in an Inhomogeneous Porous Layer