Effect of the Stokes boundary layer on the dynamics of particle pairs in an oscillatory flow