Determination of discrete relaxation and retardation time spectra from dynamic mechanical data