Fundamental physics using ultrahigh resolution gamma spectroscopy