Ukrainian authorities and pro-Russian separatists in the war-torn east of the country swap dozens of prisoners in a frontline operation that stirred controversy in Kiev.