Add spectral centroid calculation