Improved nucleus–nucleus folding potential with a repulsive core due to the change of intrinsic kinetic energy