The shallow ice approximation for anisotropic ice: Formulation and limits