Single-electron capacitance spectroscopy of semiconductor microstructures