Preparation of nanocrystalline nitrogen-doped mesoporous titanium dioxide