Stereodynamics of the collisions of aligned hydrocarbon molecules in the gas phase and with metallic surfaces