Density functional investigations of endohedral metallofullerenes TM@C24 (TM = Mn, Fe, Co, Ni, Cu, and Zn)