Calculation of damping matrices for linearly viscoelastic structures