Multifunctional 2H-TaS2 nanoflakes for efficient supercapacitors and electrocatalytic evolution of hydrogen and oxygen.