What Ukraine needs to learn from Afghanistan about proxy wars