How to cultivate gratitude during difficult times—and why it can make us all feel better