First-principles study on electronic and magnetic properties of twisted graphene nanoribbon and Möbius strips