Reconstructing the distribution of relaxation times with analytical basis functions