The effect of network density and homogeneity on attitude polarization