The legal dimensions of energy security in EU law