Critical materials recovery