The influence of interfacial chemical reactions on the residual and thermal strain in reinforced magnesium alloys