The sweeping attack targeted energy infrastructure across Ukraine overnight and prompted emergency power cuts.