Subband structure of graphene nanoribbons