Computational phase correction algorithms for multi-aperture systems