A thermoelastic contact model between a sliding ball and a stationary half space distributed with spherical inhomogeneities