On the tightness of information-theoretic bounds on generalization error of learning algorithms