Burst-and-coast swimmers optimize gait by adapting unique intrinsic cycle