Theoretical analysis of residual stress effects on the magnetostrictive properties of amorphous wires