The role of electricity in the energy transition. A multi-dimension and multi-scale approach