Simulation of the interaction of nanoclusters with metal films