Optimal airfoil shapes for viscous transonic flows of dense gases