Self-assembly of polyaniline ultrathin films based on doping-induced deposition effect and applications for chemical sensors