Deformation of an amorphous polymer during the fused-filament-fabrication method for additive manufacturing