The influence of illumination on two-photon absorption of quantum dots