Numerical Modeling of Temperature Effect on Tensile Strength of Granitic Rock