Hydrogen substituted graphdiyne as carbon-rich flexible electrode for lithium and sodium ion batteries