Synthesis of diastereomerically enriched 2-bromoesters and their reaction with nucleophiles