Correlation energy functional from jellium surface analysis