Atomic structure of epitaxial graphene sidewall nanoribbons: Flat graphene, miniribbons and confinement gap