Approaching detachment in I-mode—response of core confinement and the edge pedestal in the ASDEX Upgrade tokamak