As renewable energy sources move mainstream, electricity generation and distribution systems are getting an extreme makeover