Apple announces $500 million US investment focused on rare earth magnets