Analysis of thermo-electromagnetic stresses in high field tokamak resistive coils