Functionalized catalysts for the hydrogen evolution reactions in alkaline high pH or hydrogen oxidation reactions in halide poisoning environment