Connections between transport of intensity equation and two-dimensional phase unwrapping