Characterization of Finite Photonic Crystals With Defects