Avoiding structure degradation during activation of ordered mesoporous carbons