Half-Quadratic Cost Functions for Phase Unwrapping