Electrode distance induced changes in the growth of SiOxNy thin films for photovoltaic applications