Rest2Task modeling task-specific components in resting-state functional connectivity and applications