Chain extension and foaming of recycled PET in extrusion equipment