The generalized lewis acid-base titration of palladium and niobium