India's top automaker Mahindra is planning something big. It wants to make rare earth magnets in India —…