Shape optimization for dense gas flows in turbine cascades