Impurity modes in 1-D periodic optical systems