Bayesian multiscale deconvolution applied to gamma-ray spectroscopy