Design and constraints of theDrosophila segment polarity module: Robust spatial patterning emerges from intertwined cell state switches