Ukrainian President Volodymyr Zelensky has visited Poland after the two countries reached an agreement on a long-standing source of tensions between them: the exhumation of Polish victims of Second World War-era massacres by Ukrainian nationalists.