Theoretical study of transition-metal ions bound to benzene