Spectral intensity and phase changes of short laser pulses by two-photon absorption