Maximum likelihood estimation for generalized power series distributions and its application to a truncated binomial distribution