Stability, energetics, and magnetic states of cobalt adatoms on graphene.