Energy band gaps in graphene nanoribbons with corners