maximum likelihood estimation of gamma distribution in r