Enzymatic resolutions of alcohols, esters, and nitrogen-containing compounds