Phase discontinuity sensing: a method for phasing segmented mirrors in the infrared.