Manifestations of quantum chaos in spectra of 2D photonic crystals