code to reject artifacts and interpolate bad electrodes