Weakened at home, the Ukrainian president must try to shape the Alaska talks from afar as battlefield losses mount