Analyses of uranium and actinium gamma spectra: An application to measurements of environmental contamination