Generalized echo squeezing protocol with near-Heisenberg-limit sensitivity and strong robustness against detection noise and variation in squeezing parameter