Collision rates of spherical drops or particles in a shear flow at arbitrary Péclet numbers