Why can't carbon and nitrogen be detected in ICP-MS and ICP-OES techniques?
As you say, air is allowed to enter the plasma. Air consists primarily of $\ce{N2}$ and $\ce{O2}$, and would clearly interfere with any oxygen or nitrogen in the sample. The problem is not that ICP-MS or -OES cannot detect them, the problem is air.