Thermodynamic and spectral properties of ultrasmall superconducting grains