Optically detected gas phase magnetic resonance spectrum of the CN radical