Synthesis and physical properties of perovskite Sm$_{1-x}$Sr$_x$NiO$_3$ (x = 0, 0.2) and infinite-layer Sm$_{0.8}$Sr$_{0.2}$NiO$_2$ nickelates