Optimal ranking of measurements for state estimation by the gradient projection method