Stone-Wales defects in graphene and other planar s p2 -bonded materials