Graphite is a key material in the lithium-ion batteries that power everything from phones to electric cars.