Chaotic ray dynamics in slowly varying two-dimensional photonic crystals.