A combination of logical judging circuit and water-resistant ultrathin film PEDOT: PSS electrode for noninvasive ECG measurement