Functional and effective connectivity in MEG. Application to the study of epilepsy