Action-angle variables for the continuous spectrum of ideal magnetohydrodynamics