Elucidation of Corrosion Inhibition Mechanism by Means of Calculated Electronic Indexes