Esters for drilling emulsions and metal working fluids