Gate-Controlled P–I–N Junction Switching Device with Graphene Nanoribbon