The thermodynamic structure of the cumulus sub-cloud layer