The anomalous abundance of cosmic ray nitrogen and oxygen nuclei at low energies