scanner calib: phase and gain model and parameter estimation