Confined synthesis and interlayer coupling of patterned graphene ribbons arrays