Effect of Sm substitution on ferroelectric and magnetic properties of BiFeO3