Budapest and Bratislava have seized on the closure of a key oil pipeline to threaten to cut off electricity supplies to Ukraine.