Irreversible deformation of macromolecular networks