Two-photon excitation/ionization of atomic inner shells