Optically switchable grating based on dye-doped ferroelectric liquid crystal with high efficiency.