Engineered interfaces of WSe2/rhenium doped SnSe2 heterostructures nanosheet arrays for superior hydrogen generation and flexible supercapacitor