add new chainSwapPercent R function to calculate frequency of successful chain swaps across different values of deltaT, swapPeriod or nChains