Russia and Ukraine close in on grain deal extension