Stone-Wales defects in graphene and other planar sp(2)-bonded materials