Influence of particle size on spin switching properties and magnetoelectric coupling in SmFeO3