Homology of spectral minimal partitions