Magnetic edge anisotropy in graphenelike honeycomb crystals.