Optimization of endwall contouring in axial compressor S-shaped ducts