ac Stark splitting in doubly resonant three-photon ionization with nonmonochromatic fields