Finite-size effects in surface tension: Thermodynamics and the Gaussian interface model