Wall stabilization of axisymmetric modes in noncircular tokamak plasmas