Characterizations of Bézout and Hankel-Bézout matrices