Investigation of electronic and local structural changes during lithium uptake and release of nano-crystalline NiFe 2 O 4 by X-ray absorption spectroscopy