Dual-template engineering of triple-layered nanoarray electrode of metal chalcogenides sandwiched with hydrogen-substituted graphdiyne