Hydride-induced embrittlement and fracture in metals—effect of stress and temperature distribution