Russia and Ukraine have released 50 prisoners in a swap deal between the warring countries after negotiations by the United Arab Emirates.