Stanford researchers have discovered a simple shift in thinking can make you live longer