Extrusion and foaming of polymers: a method for “on-line” rheology monitoring