Ex-national security adviser optimistic about potential end to Russia-Ukraine war