Nonlinear elastic response of thermally damaged consolidated granular media