Semiclassical Expansion of the Slater Sum for Position Dependent Mass Distributions in d Dimensions