Periodic inversion and phase transition of finite energy Airy beams in a medium with parabolic potential