The stereodynamics of processes in the gas phase and at surfaces