Convexifying the Bethe Free Energy