Autoresonant cavity acceleration