Alterations in cognitive and emotional brain networks related to depression