Spectral detection of cyanobacteria and green algae