Variance reduction properties of the reparameterization trick