Comparing first, second, and third ionization energies between atoms Among the elements boron, carbon, nitrogen, and magnesium, what are the first ionization energies from least to greatest? What about the second and third ionization energies?

I understand the first ionization energy is given by the following formula: $\ce{X -&gt; X+ + e-}$, the second ionization energy is given by: $\ce{X+ -&gt; X^2+ + e-}$, and the third ionization energy is given by: $\ce{X^2+ -&gt; X^3+ + e-}$.

The electron configurations of the elements listed are:

$B: 1s^2 2s^2 2p_x^1$

$C: 1s^2 2s^2 2p_x^1 2p_y^1$

$N: 1s^2 2s^2 2p_x^1 2p_y^1 2p_z^1$

$Mg: 1s^2 2s^2 2p^6 3s^2$

I know that magnesium has the lowest first ionization energy because it undergoes the most electron shielding; it is shielded from the positive nuclear charge by the ($1s^2 2s^2 2p^6$ electrons).

I can deduce that nitrogen has a higher I.E. than carbon because they are both shielded by the same electrons, the $1s^2 2s^2$ electrons, but nitrogen has a higher nuclear charge. The same reasoning can be used to conclude that carbon has a higher first ionization energy than boron.

I did the above reasoning with respect to the first ionization energies. How do I apply a similar logic with the second and third ionization energies? Do the second and third ionization energies follow periodicity with respect to periods and groups? What is that trend, if any?
If you know the trends for $1^\text{st}$ ionization energies, a good first approximation for the trends of $n^\text{th}$ ionization energies at any given point is the $1^\text{st}$ ionization trend $n$ elements earlier. 

As an example, look at the first and second ionization energies for the second row elements (Table).
From $\ce{Li}$ to $\ce{Be}$, the $1^\text{st}$ ionization energy increases due to the greater effective charge on the outermost electron. From $\ce{Be}$ to $\ce{B}$, the $1^\text{st}$ ionization energy slightly decreases, as the electron we removing is in the p-subshell and is shielded by the inner s-subshell electrons. From $\ce{B}$ to $\ce{C}$, it increases again.

What about the $2^\text{nd}$ ionizations? Well from $\ce{Be}$ to $\ce{B}$, it increase, as the $2^\text{nd}$ electron from each is pulled from the s-subshell, but $\ce{B^+}$ has a greater effective charge than $\ce{Be^+}$. From $\ce{B}$ to $\ce{C}$, it decreases, as the $2^\text{nd}$ electron pulled from $\ce{C}$ is still in the less shielded p-subshell. 

The $\ce{Be}$ to $\ce{B}$ trend in $2^\text{nd}$ ionization matches up with the $\ce{Li}$ to $\ce{Be}$ trend in $1^\text{st}$ ionization. The same is true for $\ce{B}$ to $\ce{C}$ (2nd) and $\ce{Be}$ to $\ce{B}$ (1st).