Photochromic polymers: structure and environment effect on photoresponsiveness