EDF Energy says Torness, in East Lothian, and its sister site Heysham 2, in Lancashire, will continue generating for an extra two years.