A new diffusion gradient method for thermal expansion studies with applications to polystyrenee