Nanocrystalline transition metal ferrite thin films prepared by an electrochemical route for Li-ion batteries