A nonlocal maximum likelihood estimation method for enhancing magnetic resonance phase maps