Researchers have found that the byproduct of burning coal could be a viable source of critical minerals and rare earths.