Energy and system size dependence of chemical freeze-out in relativistic nuclear collisions