Jim Mattis says he has ‘reasons for optimism’ on North Korea