Monte Carlo calculation of the distributions of interatomic separation and relative velocity resulting from the dissociation of fast molecular ions by thin foils