High-fidelity manipulation of a Bose-Einstein condensate using an optical standing wave