Confocal polarization tomography of dielectric nanocavities