Studies of defects in photonic materials