Organic precursors for tailored synthesis of sulfur- and nitrogen-doped mesoporous carbons: a molecular design approach