Gamma-ray and electron spectroscopy in nuclear physics