Electrochromism of polyaniline film prepared by electrochemical polymerization