Classical magnetoresistance of a two-component system induced by thermoelectric effects