Study: A sunny outlook can help you get ahead