Ionic liquid mediated esterification of alcohol with acetic acid