A three-stage variable-shift iteration for polynomial zeros and its relation to generalized rayleigh iteration