Omnes equation with bound-state poles