The presidents of Russia and Ukraine have both offered their congratulations to US President-elect Donald Trump.