Magnetism and lattice dynamics of FeNCN compared to FeO