General Method for Synthesizing Transition-Metal Phosphide/N-Doped Carbon Nanomaterials for Hydrogen Evolution.