A general approach for haplotype phasing across the full spectrum of relatedness.