Polyaniline nanofibers and their self-assembly into a film to be used as ammonia sensor