Realization of photochromic polymeric films for optical applications