A new approach to evaluate temperature distribution and stress fracture within solid state lasers