Prisoners of war on both sides of the conflict in Ukraine have told UN human rights investigators that they have been subjected to torture and ill-treatment while held captive.