Expectation propagation learning of finite and infinite Gamma mixture models and its applications