Composition Engineered Electrocatalysts for Water Splitting and Metal-ion batteries