Thermal stability of nonlinear structures: A Gibbs analysis of the semiclassical system