An energy crisis has triggered mass demonstrations, the resignation of the Bulgarian government and cyber attacks on electricity distributor CEZ. A long-running failure to maintain generating capacity underlies the country's problems.