Nigeria’s power grid keeps collapsing every year. Can a new software fix what decades of neglect broke?