On the effect of thermal expansion on positron annihilation lineshape factors