Spectroscopic investigation of nitrogen‐functionalized carbon materials