Application of Fourier Series Expansion Method with PMLs to the Microcavities on Two-Dimensional Photonic Crystals