Crystal phase engineering of electrocatalysts for energy conversions