Finite-element method simulations of high-Q nanocavities with 1D photonic bandgap