Tuning the crystallographic and electronic properties of chromium oxynitride films