Perturbation theory for systems without global action--angle coordinates