Convexity of Self-Similar Transonic Shocks and Free Boundaries for the Euler Equations for Potential Flow