Hydrothermal synthesis, structural elucidation and electrochemical properties of three nickel and cobalt based phosphonates as anode materials for lithium ion batteries