First-order transitions and the multihistogram method