Ammonia sensing characteristics of thin film based on polyelectrolyte templated polyaniline