Generating Functions on idempotent semigroups with application to combinatorial analysis