Numerical simulation and analytical description of thermally induced birefringence in laser rods