Two-loop corrections to the vacuum polarizations in perturbative QCD