Correlations between sputtering parameters, composition and resistivity of granular NbN films