Effects of divertor geometry on H-mode pedestal structure in attached and detached plasmas in the DIII-D tokamak