Simulations of high-Q optical nanocavities with a gradual 1D bandgap.