Calculation of resonance energies and widths using the complex absorbing potential method | Synapse