Environmental cost of rare earth based-technologies