cipher/gost28147: generate optimized s-boxes from compact ones