Theory of two-photon ionization of cesium