Soft-matter structures. From switchable diffraction gratings to active plasmonics