Finite element formulation for modeling nonlinear viscoelastic elastomers