How are BOLD Measures and Connectivity Affected by Noise Removal in Resting-state and Task fMRI