Effects of magnetic anisotropy on the subgap excitations induced by quantum impurities in a superconducting host