The energy levels for ions with a single electron such as H⁺ and Li²⁺ are given by E = -2.18 × 10⁻¹⁸ J(Z²/n²). Calculate the ionization energies of H⁺ and Li²⁺ in their ground states in units of joules.