Facile synthesis of three-dimensional porous nitrogen doped carbon supported Co3O4 for oxygen reduction reaction and oxygen evolution reaction