Dynamics of low–intermediate–high-confinement transitions in the HL-2A tokamak