Novel spintronic device concept based on the magnetic edge state in graphene nanoribbons