Describir: The Rayleigh–Lorentz invariant for superconducting resonators and optimal adiabatic qubit-information detection