Versatility of a Nitrogen-Containing Monolithic Porous Carbon for Lithium-Based Energy Storage.