Choosing the optimal pulse sequence for fMRI