Direct Mode-Frequency Control for Nonlinear Optics in Photonic-Crystal Ring Resonators