Relation between Local Composition, Chemical Environment and Phase Shift Behavior in {Cr-Based} Oxycarbonitride Thin Films