Noncommutative Spectral Invariants and Black Hole Entropy