Hungary and Slovakia threatened to stop electricity supplies to Ukraine unless Kyiv restarts flows of Russian oil.