Phase-controlled nonlinear interferometry