Defect-induced magnetism in graphene