UN chief hails ‘remarkable example’ of Papua New Guinea as he concludes historic trip