Tuning of the spin reorientation and spin switching in Sm-doped NdFeO 3 | Synapse