Facile one-pot synthesis of hierarchical N-doped porous carbon for efficient ibuprofen removal.