Analogy between anisotropic layered media with variable optical axes and curve space-time for extra ordinary ray