Phononic crystals with planar defects