Structure, Thermodynamics, and Dynamics of Thin Brine Films in Oil-Brine-Rock Systems.