Effect of confining pressure on the mechanical properties of thermally treated sandstone