Atomic tuning of 3D printed carbon surface chemistry for electrocatalytic nitrite oxidation and reduction to ammonia