Electromagnetic wave propagation in quasi-periodic photonic circuits