Relationship between inhibition constant Ki and interaction energy?
One complication of enzymatic inhibition constants is that there a multiple mechanisms to inhibition, and the type of inhibition can change how the inhibition constant relates to binding energy.

On one side of the spectrum you have competitive inhibition, which means that the $EI$ complex is functionally inactive, and cannot bind substrate. (The easiest way of getting competitive inhibition of an enzyme is to have the inhibitor bind in the active site, competing with the substrate binding. But that's not the only way. You can also have allosteric inhibitors which exhibit "competitive inhibition", if they bind the apo enzyme and by doing so prevent substrate binding.) This is the sort of inhibition you're assuming in your question, but isn't the only type of inhibition.

On the other side of the spectrum, you have uncompetitive inhibition. (N.B. uncompetitive - noncompetitive inhibition is something different.) This means that the inhibitor requires the substrate to be bound to the enzyme prior to binding itself, and it's the $ESI$ complex which is functionally inactive.

And then you have a whole range of variation where you have a mix of effects (binding to both the apo and substrate-bound forms, with various affinities), of which noncompetitive inhibition is a particular type.

You're correct in that for pure competitive inhibition, the $K_i$ is equal to the $K_D$ of the inhibitor. The problem arises when you have one of those mixed effect or uncompetitive inhibitors, where catalytic steps and substrate concentrations get folded (partially) into the $K_i$.

Personally, I would recommend Enzyme Kinetics and Mechanism by Paul F. Cook and W.W. Cleland, which goes into great details about reaction mechanism, kinetics and inhibition constants. It should include derivations and relations for all the relevant scenarios.