purity analysis