Co Nanoparticles Confined in 3D Nitrogen-Doped Porous Carbon Foams as Bifunctional Electrocatalysts for Long-Life Rechargeable Zn-Air Batteries.