Comparison of the effect of non-metal and rare-earth element doping on structural and optical properties of CuO/TiO2 one-dimensional photonic crystals