Arrangements of electric connectors penetrating the casing adapted for the shape of the cells for prismatic or rectangular cells