Computing resonance positions, widths, and cross sections via the Feshbach-Fano R-matrix method: Application to potential scattering