Noise removal in resting-state and task fMRI: functional connectivity and activation maps