Measuring knowledge spillover effects via conditional nonparametric analysis