Calculation of the shrinkage-induced residual stress in a viscoelastic dental restorative material