Defect Modes in One-Dimensional Periodic Closed Resonators