Separation of yttrium and rare earth elements from geological materials