Automated filtering of common-mode artifacts in multichannel physiological recordings