Ion-pair extraction of tetracyclines