Locally designed pulse shaping for selective preparation of enantiomers from their racemate