Electric cars and solar cells rely on Chinese minerals. Here’s how to curb the risks.