Tracking evolutionary trends towards increasing complexity: a case study in Cyanobacteria