variance of geometric distribution using mgf