mean and variance of geometric distribution using mgf