Method for identifying chemical species in a substance using NQR