Photoinduced layer alignment control in ferroelectric liquid crystal with N*–C* phase transition doped with photochromic dye