Thermodynamic analysis of nucleation of alcohol molecules with the varied alkyl chain length in nanoconfined solution