Richardson's solutions in the real- and complex-energy spectrum