Local defects and ferromagnetism in graphene layers