Photo-induced cavities in chalcogenide photonic crystals