A biocatalytic approach to the synthesis of pharmacologically active compounds