Hierarchical design and development of nanostructured trifunctional catalysts for electrochemical oxygen and hydrogen reactions