A general method for controlling and resolving rotational orientation of molecules in molecule-surface collisions