Recent progress on nanostructured bimetallic electrocatalysts for water splitting and electroreduction of carbon dioxide