BMW invests in rare earth recycling