Shock waves in elastoplastic media with the structure defined by the stress relaxation process