Chemical equilibrium in heavy ion collisions: rapidity dependence