In situ optical spectroscopy during deposition of Ag:Si3N4 nanocomposite films by magnetron sputtering