Find the moment-generating function of a geometric distribution with parameter p.