The origin and role of structural inhomogeneities and impurities in material recycling of plastics