Identification of unknown impurities