Electrical characterization and modeling of pH and microparticle nanoelectronic sensors