Weighted isoperimetric inequalities on ℝn and applications to rearrangements