General Strategy for the Synthesis of Transition-Metal Phosphide/N-Doped Carbon Frameworks for Hydrogen and Oxygen Evolution.