High-resolution EEG recording system using smart electrodes