Active microcavity and coupled cavities in one-dimensional photonic crystal