Finite element calculation of residual stress in dental restorative material