Spin re-orientation in SmFeO3