Theoretical and experimental study of the nitrogen-vacancy center in 4H-SiC