Impact of the Interfacial Energy and Density Fluctuations on the Shift of the Glass-Transition Temperature of Liquids Confined in Pores