Efficient search for the possible mutual arrangements of two rigid bodies with the use of the generalized five-dimensional Fourier transform