Energy dependence of the differences between the quark and gluon jet fragmentation