Theory of four-photon resonant vacuum-ultraviolet generation with reabsorption via resonant two-photon process