Theoretical study of the stability of 5d dimers on W(211) and Ta(211)