Finite-temperature generalized Gaussian effective potential