Electricity self-consumption for the energy transition