Analyzing functional and effective connectivity with fMRI