Extraction of cobalt from spent lithium ion batteries