Ukraine says its forces are closing in on the main rebel-held bastion of Donetsk as it tries to negotiate the return of some 300 troops from over the border in Russia.