Light-induced director axis reorientation in a dye-doped ferroelectric liquid crystal and its application to self-aligned spatial filtering