A molecular-based approach for the direct synthesis of highly-ordered, homogeneously-doped mesoporous carbon frameworks