On the elastodynamic solution of frictional contact problems using variational inequalities