A thermoelastic method to accurately measure the Gruneisen parameter and thermal diffusivity