Inhibition of pattern formation and novel localized structures using intracavity photonic crystals