Extraction of chemicals from plants