Theoretical calculations on niobium and tantalum trihydride complexes. Relations with the problem of quantum mechanical exchange coupling