Photopolymerization of aniline derivatives in solid state and its application