Synthesis, characterization and catalytic studies of N-doped ordered mesoporous carbons and functionalized periodic mesoporous organosilicas