Obama rules out military solution on Ukraine