Phase unwrapping as an ill-posed problem: Performance comparison between a neural network based approach and a stochastic search method