Conformational populations and rotational barriers in esters