A reduction for spiking integrate-and-fire network dynamics ranging from homogeneity to synchrony