The electrochemical performance and mechanism of cobalt (II) fluoride as anode material for lithium and sodium ion batteries