Localized carbon concentration gradients affecting nanocrystalline growth in Si-C-N films