Ukraine and Poland have exchanged lists of places to search for and exhume the remains of victims of historical conflicts.