Robust phase unwrapping by probabilistic consensus