Density Functional Theory and Intrinsic Distortion Path in the analysis of the Jahn-Teller effect