Supercritical devolatilization of polymers