An improved algorithm for calculating relaxation time spectra from material functions of polymers with monodisperse and bimodal molar mass distributions