Metal–organic nanofibers as anodes for lithium-ion batteries