Asteroseismic surface gravity for evolved stars