Perturbed ac Stark Effect for Attosecond Optical-Waveform Sampling