Recovery of Nonsteroidal Anti-Inflammatory Drugs from Wastes Using Ionic-Liquid-Based Three-Phase Partitioning Systems