Phasing the mirror segments of the Keck telescopes II: the narrow-band phasing algorithm.