Compensating group-velocity mismatch in parametric frequency generation