A second law analysis and entropy generation minimization of an absorption chiller