Holomorphic functions which preserve holomorphic semigroups