Analysis of the transferability of similarity calculations from substructures to complex compounds