Slice monogenic functions of a Clifford variable via the $S$-functional calculus