Effect of transverse anisotropy on inelastic tunneling spectroscopy of atomic-scale magnetic chains