Companies race to mine lithium, a battery essential