The role of the reaction medium in lipase-catalyzed esterifications and transesterifications