Determining the strength of magnetic and potential scattering of magnetic impurities on the surface of a topological insulator via quantum corrals