Multipole effects in the photoionization processes of Mg isoelectronic series with Z = 12–22