Self-imaging effect in photonic quasicrystal waveguides: Application to 3 dB power splitter for terahertz waves