Atomic layer deposition of nickel carbide for supercapacitors and electrocatalytic hydrogen evolution