A General Treatment of Antiphase Domain Formation and Identification at Polar-Nonpolar Semiconductor Interfaces.