Poland and Ukraine pledge end to political friction