Structures, stabilities and magnetic properties of small Co clusters