Rearrangement estimates and applications to Sobolev and related inequalities