Mechanics of amorphous polymers and polymer gels