Two-photon ionization of cold rubidium atoms with a near resonant intermediate state