Interpretation of acceptor spectra in semiconductors