Design of graphene electronic devices using nanoribbons of different widths