Bottom-up synthesis of high-performance nitrogen-enriched transition metal/graphene oxygen reduction electrocatalysts both in alkaline and acidic solution.