Energy dependence of hyperon production in nucleus-nucleus collisions at SPS