Electrophysiological Brain Connectivity: Theory and Implementation