Unraveling the origin of the L-H isotope effect at the DIII-D tokamak