China’s stricter controls over graphite exports mean companies, including electric-vehicle makers such as Tesla, will have to accelerate their search for alterative sources of the mineral.