Effect of spatial-time dispersion on the propagation of electromagnetic waves in photonic crystals