Correlation energy of the uniform electron gas from an interpolation between high- and low-density limits