Application of USDA and SDBA Hamiltonians in calculating the excited states of odd-A magnesium isotopes