Modeling the interrelating effects of plastic deformation and stress on magnetic properties of materials