State complexity and the monoid of transformations of a finite set