AEGIS:Anadaptiveideal-magnetohydrodynamics shooting code for axisymmetric plasma stability