A guide to the rare resources behind EVs, chips and defense tech — and the startups reshaping how they’re sourced.