Equivalence of the Abraham momentum and the Minkowski momentum of photons in media