The electricity supply crisis caused an unmanaged energy transition led by market forces, with a weakened state trying to introduce reforms