Density profiles of polarized Fermi gases confined in harmonic traps