Electronic and magnetic properties of the topological semimetal SmMg$_2$Bi$_2$