AI can quickly identify structure of drugs designed for legal highs