Single-particle resonances in continuum nuclear structure calculations.