Porous materials for the recovery of rare earth elements, platinum group metals, and other valuable metals: a review