Band gaps in jagged and straight graphene nanoribbons tunable by an external electric field