Photochemical switching of polarization in ferroelectric liquid crystals: Effect of structure of host FLCs