Energy principle for the modes interacting with a resistive wall in toroidal systems. (11th February 2015)