Microscopic Spectra of Dirac Operators and Finite-Volume Partition Functions