The influence of temperature and salinity variability on the upper ocean density and mixed layer