Controlling the textural parameters of mesoporous carbon materials