Approximation of one-dimensional rugate photonic crystals using symmetric ternary photonic crystals