Structural transformation and energy analysis for pile-up dislocations at triple junction of grain boundary