The role of the medium on lipase catalyzed esterification and transesterification