Statistical acceleration and spectral energy distribution in blazars