Phase Diagram of the ABC Model on an Interval