The role of dipole-dipole interaction and the scattering strength in entanglement dynamics between atoms surrounding a microtoroidal cavity