On the local minima in phase reconstruction algorithms