Preparation of ordered N-doped mesoporous carbon materials via a polymer-ionic liquid assembly.