Endogenous implementation of technology gap in energy optimization models—a systematic analysis within TIMES G5 model