Redistribution of impurities in crystallizing polymers