S&P cuts Ukraine and Russia ratings