A method of symmetrization; applications to heat and spectral estimates