Modified quasi-phase-matching and spectral shaping in a nonlinear whispering gallery mode resonator