the process used to extract elements and compounds