Preparation and optical properties of polystyrene nanocapsules containing photochromophores