This is how your friends’ bad moods can affect your own mental health