Design of a stable solid-contact ion-selective electrode based on polyaniline nanoparticles as ion-to-electron transducer for application in process analytical technology as a real-time analyzer