Chemoenzymatic synthesis of chiral biologically active heterocycles