Identifying mixtures and pure substances