Phase matching of nonlinear processes with chirped Bragg mirrors