Photoionization of atomic ions