Position-operator method for evaluating the shift of a totally reflected electron