A comparison between deterministic and stochastic inversions of phaseless data for microwave imaging