Sensitivity of extended x-ray-absorption fine structure to thermal expansion