Slope-dependent nuclear-symmetry energy within the effective-surface approximation