Predicting functional networks from region connectivity profiles in task-based versus resting-state fMRI data