Spectra of electromagnetic excitations in periodic dielectric structures with space and temporal dispersion