Molecular Level Design of Nitrogen-Doped Well-Defined Microporous Carbon Spheres for Selective Adsorption and Electrocatalysis.