Metal Organic Framework-Derived Transition Metal-Based Catalysts for Electrochemical Water Splitting and Carbon Dioxide Reduction