Phase Structure of Gauge Theories on an Interval