Near-field optical effects inside a photosensitive sample coupled with a SNOM tip