The application of Wigner's R-matrix theory to atomic physics