The seismological signature of temperature and grain size variations in the upper mantle