Identification of drugs and counterfeit substances