Pyrolysis of N-doped organic aerogels with relation to sorption properties