Quantifying the effect of experimental perturbations at single-cell resolution