Electrodeposition of thin films of polypyrrole-polyelectrolyte complexes and their ammonia-sensing properties