Analytical solutions for thermal stresses in buried channel waveguides