Identification of elements and compounds