Analysis of the kink effect in MOS transistors