Phases of N = 1 supersymmetric gauge theories in four dimensions