Variational principles and Padé approximants. Resonances and phase shifts in potential scattering