Metal-organic framework based catalyst for hydrogen evolution reaction and CO2 reduction