A geometric approach for wave propagation in 2-D photonic crystals in the frequency domain