Unified primal-dual active set method for dynamic frictional contact problems