Synthesis and characterization of nitrogen-doped carbon xerogels