Joint estimation of phase and phase diffusion for quantum metrology.