Green technologies might not be so green. Rare earth elements used in these technologies have a big environmental impact — but there are some solutions.