Optimism and positive thinking can help leaders maintain high levels of motivation in themselves and their teams.